import { createApp } from 'vue'

// elementplus相关
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createPinia } from 'pinia'
const pinia = createPinia()

import './style.css'
import App from './App.vue'


const app = createApp(App);

// 使用插件
app.use(ElementPlus);
app.use(createPinia());

// 注册 ElementPlus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

// 最后挂载
app.mount('#app');
